// 用户相关类型定义

// 登录请求参数
export interface LoginDto {
  account: string
  password: string
  captchaKey?: string
  captchaCode?: string
}

// 注册请求参数
export interface UserDto {
  username: string
  password: string
  rePassword?: string
  nickname: string
  email: string
  phone?: string
  gender?: number // 0男，1女，2其他
}

// 用户信息
export interface User {
  id: number
  username: string
  nickname: string
  email: string
  phone: string
  wechat: string
  qq: string
  gender: number
  ip: string
  avatarUrl: string
  status: number
  language: string
  createTime: string
  updateTime: string
}

// 登录响应
export interface LoginResponse {
  token: string
}

// 博客配置信息
export interface BlogConfig {
  id: number
  blogName: string
  blogAvatar: string
  avatarBg: string
  personalSay: string
  blogNotice: string
  qqLink: string
  wechatLink: string
  githubLink: string
  gitEeLink: string
  bilibiliLink: string
  viewCount: number
  createTime: string
  updateTime: string
}
